solve sides of parallelogram